<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" import=" myUtils.Constants,myUtils.page.*,java.util.*,po.*"%>
<s:include value="/layout/header.jsp" />
<SCRIPT language="javascript" src="js/page-navigater.js"></SCRIPT>
<%
        Result result = (Result) request.getAttribute("result");
        List content = result.getContent();
        Page p = result.getPage();


%>
<!-- B.1 MAIN CONTENT -->
<div class="main-content">
    <h1 class="pagetitle">相关的新闻列表</h1>

    <div class="column1-unit">
        <ul>
            <%for (int i = 0; i < content.size(); ++i) {
            News news = (News) content.get(i);
            %>
            <li>
                <a href="showNewsDetail.action?id=<%=news.getId()%>"><%=news.getTitle()%></a>
                <%=news.getTime().toLocaleString()%>
            </li>
            <%}%>
        </ul>

    </div>
    <hr class="clear-contentunit" />
    <script language="javascript">
        pager = new PageNavigater(<%=p.getTotalPage()%>,<%=p.getCurrentPage()%>, "newsList.action?") ;document.write(pager);</script>
</div>
<s:include value="/layout/footer.jsp"/>